package com.health.yb.web.bean.common;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

@Data
@AllArgsConstructor
@Builder
public class PageResponse<T> implements Serializable {
    private static final long serialVersionUID = 768549219446295665L;
    private Long total;
    private List<T> records;

    public PageResponse() {
        this.total = 0L;
        this.records = new ArrayList<>();
    }
}
